<%= content_tag(:div, :id=>dom_id(person), :class=>"dinamic-bl") do %>
  <div class="act-bl" style="display:none;">
    <% if can? :update, person, :context => :manage %>
      <%= link_to manage_icon("edit"), edit_manage_person_path(:id=>person.id), :class=>"icons" %>
    <% end -%>
    
    <% if can? :delete, person, :context => :manage %>
      <%= link_to manage_icon("delete"), manage_person_path(:id=>person.id), 
          :method=>:delete, :confirm=>t("manage.confirm_delete"), :class=>"icons" %>
    <% end -%>
  </div>
  
  <div class="bot-bg">
    <div class="dinamic-container">
    	<div class="right-data">	
        <div class="right-data-cont">
          <div class="dinamic-inner">
          	<div class="r-block">
              <div class="r-block-cont">
                <%= link_to person.name, edit_manage_person_path(:id=>person.id), :class=>"title" %>
                
                <table border="0" width="100%" cellspacing="0" cellpadding="0" class="inf">
                  <tbody>
                    <tr>
                      <td class="left">Ответы (Правильные):</td>
                      <td><%= person.answers.size %> (<%= person.answers.select{|a| a.is_correct?}.size %>)</td>
                    </tr>
                    <tr>
                      <td class="left">IP / User Agent:</td>
                      <td><b><%= person.answers.last.try(:request_ip) %></b> / <%= person.answers.last.try(:user_agent) %></td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
            <div class="l-block">
              <%= link_to image_tag(person.img(:square), :alt => person.name, :title => person.name), person.link, :target => '_blank' %>
            </div>
          </div>
        </div>
      </div>
      <div class="left-data">
        <span class="data"><%= raw I18n.l(person.created_at, :format=>"<span>%d/%m</span>%Y") %></span>
      </div>
    </div>
  </div>
<% end %>
